//
//  sendChatRead.m
//  tcpoctest
//
//  Created by apple on 13-7-22.
//  Copyright (c) 2013年 gump. All rights reserved.
//

#import "sendChatRead.h"

@implementation sendChatRead

-(void)sendChatAlreadyRead:(NSString *)strid
{
   //发送 16char(1),228char(1),
    //已阅读消息ID长度char(1),已经阅读消息IDchar(x)
    
    if (![self CheckLogin]) {
        return;
    }
    
    int l = CHAR_PL * 3 + INT_PL + [strid length];
    
    [self initDataByLength:l];
    
    [sb WriteChar:[strid length]];
    [sb WriteString:strid withLength:[strid length]];
    
    [self Package];
    
    EACHOTHER_LOG(@"send length %d mainindex %d secindex %d %@ \r\n"
           ,length
           ,mainIndex
           ,secIndex
           ,self);
}

@end
